/*
 * @Author: ZhanXie
 * @Date: 2019-11-25 11:42:50
 * @LastEditors: ZhanXie
 * @LastEditTime: 2019-11-25 11:46:39
 * @Description: webpack 配置
 * @FilePath: /webpack-study/webpack-plugin/webpack.config.js
 */
const path = require('path')
const CopyRightWebpackPlugin = require('./plugins/copy-right-webpack-plugin.js')

 module.exports = {
   mode: 'development',
   entry: {
     main : './src/index.js'
   },
   plugins: [
    new CopyRightWebpackPlugin()
  ],
   output: {
     path: path.resolve(__dirname, 'dist'),
     filename: '[name].js'
   }
 }